# coding=utf-8
"""ZhangMock URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""


from django.conf.urls import url, include
from django.contrib import admin


# 1.URLpatterns 是固定写法，它的值是列表
# 2.我们在浏览器输入的路径和 urlpatterns中的每一项顺序进行匹配
#     如果匹配成功，则直接引导到相应的模块
#     如果陪陪不成功，则直接返回404
# 3.  中的元素是URL
#     url的第一个参数是"正则"
#         r转义
#         ^ 严格的开始
#         $ 严格的结尾
#
# 5. 如果和当前的某一项匹配成功，则引导到子应用中继续匹配

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^risk/', include('risk.urls')),
    # url(r'^', include('star.urls', namespace='star')),
    url(r'^', include('test.urls'))
]
